import { State } from "../../Base/State";
import { StateMachine } from "../../Base/StateMachine";
import { DIRECTION_ENUM } from "../../Enums";
import { DirectionSubStateMachine } from "../../Base/DirectionSubStateMachine";

const BASE_URL = 'texture/ironskeleton/death';

export default class IronSkeletonDeathSubStateMachine extends DirectionSubStateMachine {
    constructor(fms: StateMachine) {
        super(fms);

        this.stateMachines.set(DIRECTION_ENUM.UP, new State(fms, `${BASE_URL}/top`));
        this.stateMachines.set(DIRECTION_ENUM.DOWN, new State(fms, `${BASE_URL}/bottom`));
        this.stateMachines.set(DIRECTION_ENUM.LEFT, new State(fms, `${BASE_URL}/left`));
        this.stateMachines.set(DIRECTION_ENUM.RIGHT, new State(fms, `${BASE_URL}/right`));
    }
}